﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Build.Evaluation;
using Microsoft.Build.Framework;
using System.Threading.Tasks;
using Crude.VisualStudioAddin.BuildEngine;

namespace Crude.VisualStudioAddin.Actions
{
    class PublishLocalAction : BaseProjectAction
    {
        public override string Name
        {
            get { return "PublishProjectLocal"; }
        }

        public override string Caption
        {
            get { return "Publish Project Local"; }
        }

        public override string Tooltip
        {
            get { return "Publish the current project to the local repository"; }
        }

        public override BaseProjectAction.ProjectCrudeStatus CrudeStatus
        {
            get { return ProjectCrudeStatus.Crude; }
        }

        protected override void InternalExecuteAction(EnvDTE80.DTE2 applicationObject, EnvDTE.Project project)
        {
            Engine.Instance.Build(project.FullName,"PublishLocal", "Publish project to local repository");
        }

       
    }
}
